#include <iostream>

using namespace std;

class A {
private:
	int num;
public:
	A(int x) {
		num = x;
		cout << "class A constructing" << endl;
	}
	
	~A() {
		cout << "class destructing, num=" << num << endl;
	}	 
};
int main() {
	/*
	int x=10, &y=x;
	cout << "" << x << ",y=" << y << endl;
	int *p = &y;
	*p=100;
	cout << "" << x << ",y=" << y << endl;
	return 0;
	*/
	
	A x(5);
	cout << "exit main" << endl;
	return 0;
} 

